using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblKhoa
	{
	private int stt;
	private int idTruong;
	private string tenkhoa;
	private string mota;
	private DateTime ngaytao;
	public tblKhoa()
	{}
	public tblKhoa(int stt,int idTruong,string tenkhoa,string mota,DateTime ngaytao)
	{
	this.stt = stt;
	this.idTruong = idTruong;
	this.tenkhoa = tenkhoa;
	this.mota = mota;
	this.ngaytao = ngaytao;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int IdTruong{
	get { return this.idTruong;}
	set {this.idTruong=value;}
	}
	public string Tenkhoa{
	get { return this.tenkhoa;}
	set {this.tenkhoa=value;}
	}
	public string Mota{
	get { return this.mota;}
	set {this.mota=value;}
	}
	public DateTime Ngaytao{
	get { return this.ngaytao;}
	set {this.ngaytao=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.idTruong+"; "+this.tenkhoa+"; "+this.mota+"; "+this.ngaytao+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblKhoa me=(tblKhoa)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 